package de.lang.rollo.controller.managed;

import com.mongodb.Mongo;
import com.yammer.dropwizard.lifecycle.Managed;

import de.lang.rollo.controller.configurations.GpioConfiguration;
import de.lang.rollo.controller.logic.GPIOFacade;
import de.lang.rollo.controller.logic.GPIOFactory;

public class GPIOManaged implements Managed {

    private static GPIOFacade facade;

    public GPIOManaged(GpioConfiguration configuration) {
        GPIOManaged.facade = GPIOFactory.createFacade(configuration);
    }

    public void start() throws Exception {
    }

    public void stop() throws Exception {
    	facade.shutdown();
    }

	public static GPIOFacade getFacade() {
		return facade;
	}
    
    
}